<?php

	try
	{
		ob_start();
		define('enterpoint', true);
		
		if (file_exists('functions/func_common.php'))
			include('functions/func_common.php');
		else exit('<div style="color: red"> file structure corrupted </div>');
		
		RImport('consts/consts.php');
		RImport('configs/configs.php');
		
		RMassImport('classes'.DS.'basic');
		
		RClassDb::getInstance();
		ob_clean();
		$router = new RRouter;
		$router->route();
	}
	catch(Exception $e)
	{
		echo $e->getMessage().'<br/> '.$e->getTraceAsString();
		
	}
?>